﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GuestList.Models
{
    [Serializable]
    public class Person : NotifyPropertyChanged
    {
        string _firstName = string.Empty;
        string _lastName = string.Empty;

        public string FirstName 
        {
            get { return _firstName; }
            set
            {
                _firstName = value;
                Notify("FirstName");
            }
        }

        public string LastName
        {
            get { return _lastName; }
            set
            {
                _lastName = value;
                Notify("LastName");
            }
        }

        public override string ToString()
        {
            return string.Format("{0} {1}", FirstName, LastName);
        }
    }
}
